package commandPattern.common;

public class Client {


    public static void main(String[] args) {

        Order order = new Order();
        order.setDingTable(1);
        order.setFoodDir("西红柿炒蛋", 1);
        order.setFoodDir("红烧肉", 1);

        Order order1 = new Order();
        order1.setDingTable(1);
        order1.setFoodDir("西红柿炒蛋", 1);
        order1.setFoodDir("红烧肉", 1);

        SeniorChef seniorChef = new SeniorChef();

        OrderCommand orderCommand = new OrderCommand(seniorChef, order);
        OrderCommand orderCommand1 = new OrderCommand(seniorChef, order1);

        Waitor waitor = new Waitor();
        waitor.setCommands(orderCommand);
        waitor.setCommands(orderCommand1);
        // 调用者调用
        waitor.orderUp();

    }
}
